package com.entity;

/**
 * @Author: 冷俊杰
 * @Description: 购物车
 * @DateTime: 2022/6/17 18:34
 **/
public class T_order_item {
    private Integer id;//订单详情ID
    private String name;//商品名称
    private Double price;//商品单价
    private Double money;//商品总金额
    private Integer count;//商品数量
    private Integer order_id;//订单外键编号

    public T_order_item(Integer id, String name, Double price, Double money, Integer count, Integer order_id) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.money = money;
        this.count = count;
        this.order_id = order_id;
    }

    public T_order_item(String name, Double price, Double money, Integer count, Integer order_id) {
        this.name = name;
        this.price = price;
        this.money = money;
        this.count = count;
        this.order_id = order_id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getOrder_id() {
        return order_id;
    }

    public void setOrder_id(Integer order_id) {
        this.order_id = order_id;
    }

    @Override
    public String toString() {
        return "T_order_item{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", money=" + money +
                ", count=" + count +
                ", order_id=" + order_id +
                '}';
    }
}
